import {createRouter, createWebHistory} from "vue-router";

export default createRouter({
    history: createWebHistory(),
    scrollBehavior() {
        return  {left: 0, right: 0}
    },
    routes :[
        {
            path: '/home',
            component: () => import('@/pages/home/index.vue')
        },
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/hospital',
            component: () => import('@/pages/hospital/index.vue')
        },
        {
            path: '/1',
            component: () => import('@/components/HelloWorld.vue')
        }
    ]

})
